﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QuanLyNhaSach.QuanLyNhaSachDao;
using QuanLyNhaSach.QuanLyNhaSachDTO;
namespace QuanLyNhaSach.QuanLyNhaSachBus
{
    class PhieuThuBus
    {
        public static DataTable GetPhieuThuAll()
        {
           return (PhieuThuDao.GetPhieuThuAll());
        }
        public static int getTienNoKhachHang(PhieuThuDTO pt)
        {
            
            return PhieuThuDao.getTienNoKhachHang(pt);
        }
        public static void InsertPT(PhieuThuDTO pt)
        {
            PhieuThuDao.InsertPT(pt);
        }
        public static void updateTienNoKH(int tien, PhieuThuDTO pt)
        {
            PhieuThuDao.updateTienNoKH(tien, pt);
        }
        public static bool Delete(PhieuThuDTO pt)
        {

            PhieuThuDao.Delete(pt);
            return true;

        }
        public static bool updateTienThuPT(int tien, PhieuThuDTO pt)
        {
            PhieuThuDao.updateTienThuPT(tien, pt);
            return true;

        }
        public static DataTable GetPhieuThubaoCao()
        {
            DataTable dt = PhieuThuDao.GetPhieuThubaoCao();

            return dt;
        }
        public static int getTienThuPT(PhieuThuDTO pt)
        {

            int a = PhieuThuDao.getTienThuPT(pt);
            return a;
        }
    }
}
